<?php
use common\service\StaticService;
use common\service\GlobalUrlService;
use shopend\assets\ShopAsset;
use common\service\CommonService;

ShopAsset::register($this);
?>

<div class="content_box" style="width: 100%; margin: 0;">
    <div class="index_list">
        <table class="table table-striped table-bordered table-advance table-hover layui-table" style="text-align: center;">
            <colgroup>
                <col width="40%">
                <col width="10%">
                <col width="25">
                <col width="15%">
                <col width="10%">
            </colgroup>
            <thead>
                <tr>
                    <th style="text-align: center;"><i class="icon-briefcase"></i> 提现流水号</th>
                    <th style="text-align: center;"><i class="icon-briefcase"></i> 提现金额</th>
                    <th style="text-align: center;"><i class="icon-briefcase"></i> 申请时间</th>
                    <th style="text-align: center;"><i class="icon-briefcase"></i> 提现状态</th>
                    <th style="text-align: center;"><i class="icon-shopping-cart"></i> 操作</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($data as $key=>$data):?>
                    <tr class="">
                        <td class="hidden-phone"><?php echo $data['withdraw_no'];?></td>
                        <td class="hidden-phone"><?php echo $data['withdraw_money'];?></td>
                        <td class="hidden-phone"><?php echo date('Y-m-d H:i:s',$data['create_time']);?></td>
                        <td class="hidden-phone"><?= CommonService::getWithdrawStatus($data['withdraw_status'])?></td>
                        <td>
                            <a href="<?= GlobalUrlService::buildShopUrl('withdraw/info',['id'=>$data['id']])?>" class="btn mini purple layui-btn layui-btn-xs"><i class="icon-edit"></i> 查看</a>
                        </td>
                    </tr>
                <?php endforeach;?>
            </tbody>
        </table>
    </div>
</div>


